package com.starsoft.smdc.bean;

import java.util.Date;

public class SmdcHandicap {
	
	private String ticker;
	private String secId;
	
	private boolean isOpen = true;
	private double price;
	private double openPrice;
	private double preClosePrice;
	private double highPrice;
	private double lowPrice;
	private double percent;
	private double priceChange;
	private double turnoverValue;
	private double turnoverVol;	
	private double turnoverRate;

	private double buy1;
	private double buy2;
	private double buy3;
	private double buy4;
	private double buy5;
	private double buyVol1;
	private double buyVol2;
	private double buyVol3;
	private double buyVol4;
	private double buyVol5;
	
	private double sell1;
	private double sell2;
	private double sell3;
	private double sell4;
	private double sell5;
	private double sellVol1;
	private double sellVol2;
	private double sellVol3;
	private double sellVol4;
	private double sellVol5;
	private Date updateTime;


	public String getTicker() {
		return ticker;
	}

	public void setTicker(String ticker) {
		this.ticker = ticker;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getOpenPrice() {
		return openPrice;
	}

	public void setOpenPrice(double openPrice) {
		this.openPrice = openPrice;
	}

	public double getPreClosePrice() {
		return preClosePrice;
	}

	public void setPreClosePrice(double preClosePrice) {
		this.preClosePrice = preClosePrice;
	}

	public double getHighPrice() {
		return highPrice;
	}

	public void setHighPrice(double highPrice) {
		this.highPrice = highPrice;
	}

	public double getLowPrice() {
		return lowPrice;
	}

	public void setLowPrice(double lowPrice) {
		this.lowPrice = lowPrice;
	}

	public double getPercent() {
		return percent;
	}

	public void setPercent(double percent) {
		this.percent = percent;
	}

	public double getPriceChange() {
		return priceChange;
	}

	public void setPriceChange(double priceChange) {
		this.priceChange = priceChange;
	}

	public double getTurnoverVol() {
		return turnoverVol;
	}

	public void setTurnoverVol(double turnoverVol) {
		this.turnoverVol = turnoverVol;
	}
	
	public double getTurnoverValue() {
		return turnoverValue;
	}

	public void setTurnoverValue(double turnoverValue) {
		this.turnoverValue = turnoverValue;
	}

	public double getTurnoverRate() {
		return turnoverRate;
	}

	public void setTurnoverRate(double turnoverRate) {
		this.turnoverRate = turnoverRate;
	}

	public double getBuy1() {
		return buy1;
	}

	public void setBuy1(double bid1) {
		this.buy1 = bid1;
	}

	public double getBuy2() {
		return buy2;
	}

	public void setBuy2(double bid2) {
		this.buy2 = bid2;
	}

	public double getBuy3() {
		return buy3;
	}

	public void setBuy3(double bid3) {
		this.buy3 = bid3;
	}

	public double getBuy4() {
		return buy4;
	}

	public void setBuy4(double bid4) {
		this.buy4 = bid4;
	}

	public double getBuy5() {
		return buy5;
	}

	public void setBuy5(double bid5) {
		this.buy5 = bid5;
	}

	public double getBuyVol1() {
		return buyVol1;
	}

	public void setBuyVol1(double bidVol1) {
		this.buyVol1 = bidVol1;
	}

	public double getBuyVol2() {
		return buyVol2;
	}

	public void setBuyVol2(double bidVol2) {
		this.buyVol2 = bidVol2;
	}

	public double getBuyVol3() {
		return buyVol3;
	}

	public void setBuyVol3(double bidVol3) {
		this.buyVol3 = bidVol3;
	}

	public double getBuyVol4() {
		return buyVol4;
	}

	public void setBuyVol4(double bidVol4) {
		this.buyVol4 = bidVol4;
	}

	public double getBuyVol5() {
		return buyVol5;
	}

	public void setBuyVol5(double bidVol5) {
		this.buyVol5 = bidVol5;
	}

	public double getSell1() {
		return sell1;
	}

	public void setSell1(double sell1) {
		this.sell1 = sell1;
	}

	public double getSell2() {
		return sell2;
	}

	public void setSell2(double sell2) {
		this.sell2 = sell2;
	}

	public double getSell3() {
		return sell3;
	}

	public void setSell3(double sell3) {
		this.sell3 = sell3;
	}

	public double getSell4() {
		return sell4;
	}

	public void setSell4(double sell4) {
		this.sell4 = sell4;
	}

	public double getSell5() {
		return sell5;
	}

	public void setSell5(double sell5) {
		this.sell5 = sell5;
	}

	public double getSellVol1() {
		return sellVol1;
	}

	public void setSellVol1(double sellVol1) {
		this.sellVol1 = sellVol1;
	}

	public double getSellVol2() {
		return sellVol2;
	}

	public void setSellVol2(double sellVol2) {
		this.sellVol2 = sellVol2;
	}

	public double getSellVol3() {
		return sellVol3;
	}

	public void setSellVol3(double sellVol3) {
		this.sellVol3 = sellVol3;
	}

	public double getSellVol4() {
		return sellVol4;
	}

	public void setSellVol4(double sellVol4) {
		this.sellVol4 = sellVol4;
	}

	public double getSellVol5() {
		return sellVol5;
	}

	public void setSellVol5(double sellVol5) {
		this.sellVol5 = sellVol5;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getSecId() {
		return secId;
	}

	public void setSecId(String secId) {
		this.secId = secId;
	}
	
	public boolean isOpen() {
		return isOpen;
	}

	public void setOpen(boolean isOpen) {
		this.isOpen = isOpen;
	}

	public SmdcMarketDaily toMarket(){
		SmdcMarketDailyId id = new SmdcMarketDailyId(secId, updateTime);
		SmdcMarketDaily market = new SmdcMarketDaily(id);
		market.setIsOpen(isOpen);
		market.setPreClosePrice(preClosePrice);
		market.setOpenPrice(openPrice);
		market.setClosePrice(price);
		market.setHighPrice(highPrice);
		market.setLowPrice(lowPrice);
		market.setPercent(percent);
		market.setPriceChange(priceChange);
		market.setTurnoverVol(turnoverVol);
		market.setTurnoverValue(turnoverValue);
		market.setTurnoverRate(turnoverRate);
		market.setBuy1(this.getBuy1());
		market.setBuyVol1(this.getBuyVol1());
		market.setSell1(this.getSell1());
		market.setSellVol1(this.getSellVol1());
		return market;
	}

}

